<?php
session_start();

require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";

$main = new Skin("dipartimento");

switch ($_REQUEST['mode']) {
	case 1:
		
		$body = new Skinlet("page_single_tabbed");
		$main_page = new Content($pageEntity);
		$main_page->apply($body);
		$main_page->propagate("page_id", "page_parent");
		
		$main_page->clean();
		
		
		
		$pages = new Content($pageEntity);
		
		$pages->apply($body, "tab");
		$main->setContent("body", $body->get());
		
		
		
		break;
	default:
		
		$content = new Content($pageEntity);
		$main->setContent("body", $content->get());
		break;
	
}


$main->close();  


?>